Error at JSON:Missing ] after element list

Posted by dhivya on Stack Overflow See other posts from Stack Overflow or by dhivya
Published on 2010-06-17T12:30:05Z Indexed on 2010/06/17 12:33 UTC
Read the original article Hit count: 266

Filed under:
var phoneBookTableValue = [];
phoneBookTableValue.push({ "key":"1", "value":["3396,Accounting ,CCH,,,,","1"]});
phoneBookTableValue.push({ "key":"2", "value":["3284,Acute Care ,CCH,,,,","2"]});
phoneBookTableValue.push({ "key":"3", "value":["3265,Acute'Care East ,CCH,,,,","3"]});

When running the javascript file I get the error "missing ] after element list. Can U help me? PLZ!

© Stack Overflow or respective owner

Related posts about JavaScript